package com.piece.core.framework.util.message;

import com.piece.core.framework.support.dto.PayloadDTO;

public interface Message {

    boolean isDefault();

    /**
     * 发送消息
     */
    void send(PayloadDTO payload) throws Exception;

    /**
     * 重新发送消息
     */
    void reSend(PayloadDTO payload) throws Exception;
}
